<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.ksu.manager.model.User"%>
 <%User user = (User)session.getAttribute("user");%>
  <link rel="stylesheet" type="text/css" href="/sm/pages/css/style.css">
  <script type='text/javascript' src='/sm/pages/js/validator.js'></script>
	<a href="/sm/index.jsp">首页</a><%if(user!=null){ %>|
	<a href="/sm/controller/typeItem/list.html">产品类型</a>|
	<a href="/sm/controller/product/list.html">产品</a>|
	<a href="/sm/controller/itemManager/list.html">出/入库明细</a>
	<%if(user.getRole().equals("admin")){ %><a href="/sm/controller/buyLoseManager/list.html">买入/丢失明细</a><%} %>
	<%if(user.getRole().equals("admin")){ %><a href="/sm/controller/user/list.html">用户管理</a><%} %>
<%} %>

 <%if(user!=null){ %>
      <h4>欢迎,<%=user.getUserName() %>,<a href="/sm/controller/login/logonOut">退出系统</a></h4>
 <%}%>